//分页参数
var page = 0;

function initReview(page) {
	var url = "/jingyan/getArticleList/" + channelId + "/?page=" + page;
	$.get(url, function(data, status) {
		if (status == "success") {
			if (data.status) {
				var htmlStr = "";
				var dataObj = data.resultObj;
				if (dataObj != null &&  dataObj.length > 0) {
					$.each(dataObj  , function(i, item) {
						htmlStr += "<li class='zh_art_li03 zh_margin05rem'>";
						htmlStr += "<a href='/jingyan/page/" + item.id + "'>";
						htmlStr += "<img src='" + item.pic + "' />";
						htmlStr += "<div class='zh_art_div01 zh_he_div01'>";
						htmlStr += "<h3>" + item.title + "</h3>";
						htmlStr += "<p>" + item.abst + "</p>";
						htmlStr += "<p>发布于：" + item.createTime + "</p>";
						htmlStr += "</div></a>";
						htmlStr += "</li>";
					});
					$(htmlStr).appendTo(".zh_art_ul02");
				} else {
					$(".zh_he_loadMore").unbind("click");
					$(".zh_he_loadMore p").text("没有更多内容~");
				}
			} else {
				alert(data.msg);
			}
		}
	}, "json");
}

//加载更多
$(".zh_he_loadMore").click(function(){
	initReview(++page)
});

